package tr.edu.metu.is.mega.server.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 * The persistent class for the systemuser database table.
 */
@Entity
public class Systemuser implements Serializable, tr.edu.metu.is.mega.server.core.BaseEntity {

    private static final long serialVersionUID = -1020259906548307376L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer pkid;

    private String email;

    private Timestamp expirydate;

    private String identificationno;

    private String name;

    private String password;

    private String photo;

    private String surname;

    private String username;

    private String userrole;

    // bi-directional many-to-one association to Courseassistant
    @OneToMany(mappedBy = "systemuser")
    private List<Courseassistant> courseassistants;

    // bi-directional many-to-one association to Coursestudent
    @OneToMany(mappedBy = "systemuser")
    private List<Coursestudent> coursestudents;

    // bi-directional many-to-one association to Submission
    @OneToMany(mappedBy = "systemuser")
    private List<Submission> submissions;

    /**
     * Default constructor.
     */
    public Systemuser() {
    }

    /**
     * Returns pkid.
     * 
     * @return the pkid
     */
    @Override
    public Integer getPkid() {
        return pkid;
    }

    /**
     * Sets pkid value.
     * 
     * @param pkid the pkid to set
     */
    @Override
    public void setPkid(Integer pkid) {
        this.pkid = pkid;
    }

    /**
     * Returns email.
     * 
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * Sets email value.
     * 
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Returns expirydate.
     * 
     * @return the expirydate
     */
    public Timestamp getExpirydate() {
        return expirydate;
    }

    /**
     * Sets expirydate value.
     * 
     * @param expirydate the expirydate to set
     */
    public void setExpirydate(Timestamp expirydate) {
        this.expirydate = expirydate;
    }

    /**
     * Returns identificationno.
     * 
     * @return the identificationno
     */
    public String getIdentificationno() {
        return identificationno;
    }

    /**
     * Sets identificationno value.
     * 
     * @param identificationno the identificationno to set
     */
    public void setIdentificationno(String identificationno) {
        this.identificationno = identificationno;
    }

    /**
     * Returns name.
     * 
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets name value.
     * 
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Returns password.
     * 
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * Sets password value.
     * 
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Returns photo.
     * 
     * @return the photo
     */
    public String getPhoto() {
        return photo;
    }

    /**
     * Sets photo value.
     * 
     * @param photo the photo to set
     */
    public void setPhoto(String photo) {
        this.photo = photo;
    }

    /**
     * Returns surname.
     * 
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }

    /**
     * Sets surname value.
     * 
     * @param surname the surname to set
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }

    /**
     * Returns username.
     * 
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * Sets username value.
     * 
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * Returns userrole.
     * 
     * @return the userrole
     */
    public String getUserrole() {
        return userrole;
    }

    /**
     * Sets userrole value.
     * 
     * @param userrole the userrole to set
     */
    public void setUserrole(String userrole) {
        this.userrole = userrole;
    }

    /**
     * Returns courseassistants.
     * 
     * @return the courseassistants
     */
    public List<Courseassistant> getCourseassistants() {
        return courseassistants;
    }

    /**
     * Sets courseassistants value.
     * 
     * @param courseassistants the courseassistants to set
     */
    public void setCourseassistants(List<Courseassistant> courseassistants) {
        this.courseassistants = courseassistants;
    }

    /**
     * Returns coursestudents.
     * 
     * @return the coursestudents
     */
    public List<Coursestudent> getCoursestudents() {
        return coursestudents;
    }

    /**
     * Sets coursestudents value.
     * 
     * @param coursestudents the coursestudents to set
     */
    public void setCoursestudents(List<Coursestudent> coursestudents) {
        this.coursestudents = coursestudents;
    }

    /**
     * Returns submissions.
     * 
     * @return the submissions
     */
    public List<Submission> getSubmissions() {
        return submissions;
    }

    /**
     * Sets submissions value.
     * 
     * @param submissions the submissions to set
     */
    public void setSubmissions(List<Submission> submissions) {
        this.submissions = submissions;
    }

}
